/**
 * Proyecto: Cognitum
 * Global IT Services 2008
 * @author Mislas
 */

Cognitum.Cartera.Telefono.Componentes.Generales = Ext.extend(Karma.FB, {
	
	initComponent: function(){
		Ext.apply(this,{
	        title: 'Telefono',
	        items: [{
                fieldLabel: 'Nombre',
                name: 'Nombre'
            },{
				xtype: 'enum.combo',
				enumName: 'Cognitum.Dominio.Cartera.TipoTelefonoEnum',
                fieldLabel: 'Tipo',
                name: 'Tipo'
            },{
                fieldLabel: 'Lada (nac)',
                name: 'LadaNacional',
				allowBlank: true
            },{
                fieldLabel: 'Lada (int)',
                name: 'LadaInternacional',
				allowBlank: true
            },{
                fieldLabel: 'N&uacute;mero',
                name: 'Numero'
            },{
                fieldLabel: 'Extensi&oacute;n',
                name: 'Extension',
				allowBlank: true
            },{
                xtype: 'entity.link',
                entityName: 'Contacto Persona Moral',
				name: 'Contacto',
                fieldLabel: 'Contacto',
				disabled: true
            },{
                fieldLabel: 'Estatus',
                name: 'Estatus',
                xtype: 'enum.combo',
                enumName: 'Cognitum.Dominio.Aplicacion.EstatusEnum',
                hidden: true,
                hideLabel: true
            }]
		});
		Cognitum.Cartera.Telefono.Componentes.Generales.superclass.initComponent.apply(
			this, arguments);
	}
});
Ext.reg('tel.ctls.gral', Cognitum.Cartera.Telefono.Componentes.Generales);

Cognitum.Cartera.Telefono.Editor = Ext.extend(Karma.EBCard, {

	initComponent: function(){
		Ext.apply(this, {
			sections: [{
				xtype: 'tel.ctls.gral',
				title: 'General'
			},{
				xtype: 'aud.editor',
				title: 'Info registro'
			}]
		});
		Cognitum.Cartera.Telefono.Editor.superclass.initComponent.apply(this, arguments);
	}
});

Ext.reg('tel.editor', Cognitum.Cartera.Telefono.Editor);
